//
//  CommonWebVC.h
//  XV
//
//  Created by apple on 03/04/2019.
//  Copyright © 2019 XR. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>


NS_ASSUME_NONNULL_BEGIN

/**
 通用的webVC
 */
@interface CommonWebVC : UIViewController

@property (nonatomic, strong) WKWebView *webView;
@property (nonatomic, strong) NSURL *webUrl;

//初始化界面
- (instancetype)initWithURLString:(NSString*)url title:(NSString*)title;

- (instancetype)initWithURL:(NSURL*)url title:(NSString*)title;

//网页请求加自定header
@property (nonatomic, strong) NSDictionary *dicHttpHeader;

//是否隐藏标题栏
@property (nonatomic, assign) BOOL isHideTitle;

//重新加载url
-(void)reloadUrl;

@end

NS_ASSUME_NONNULL_END
